<?php

namespace app\modules\admin\controllers;

use app\components\ActionTimeFilter;
use yii\web\Controller;

/**
 * Default controller for the `admin` module
 */
class DefaultController extends Controller
{
    public function behaviors(): array
    {
        return [
            [
                'class' => ActionTimeFilter::class,
                'only' => ['index', 'view']
            ],
        ];
    }

    /**
     * Renders the index view for the module
     * @return string
     */
    public function actionIndex()
    {
        return $this->render('index');
    }
}
